package com.wkbb.common.enums;

/**
 * @author yangdaofang
 * 创建时间：2020-06-29 10:51
 */
public enum SubmitEnum {
    /**
     * 系统提示
     */
    SYSTEMERROR(0,"系统提示"),
    /**
     * 正常提交
     */
    SUBMIT(1,"正常提交");

    private SubmitEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SubmitEnum submitEnum : SubmitEnum.values()) {
            if (submitEnum.getValue().intValue()==value) {
                return submitEnum.getDesc();
            }
        }
        return null;
    }
}
